package com.youkeyi.ddy.cloud.common.api.basic.pub.dictionary;

import com.youkeyi.ddy.cloud.common.api.basic.pub.dictionary.dto.PublicDictionaryByBusinessCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.dictionary.dto.PublicDictionaryListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.dictionary.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicDictionaryCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/20 4:28 PM
 * @Location shenzhen.china
 */
@Slf4j
@Component
@RequestMapping("/public/dictionary/fallback")
public class PublicDictionaryCloudServiceFallback implements PublicDictionaryCloudService {

    @Override
    public PublicDictionaryListCloudDto query(PublicDictionaryQueryCloudParam param) {
        return new PublicDictionaryListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public PublicDictionaryByBusinessCloudDto queryByBusiness(PublicDictionaryQueryByBusinessCloudParam param) {
        return new PublicDictionaryByBusinessCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(PublicDictionaryCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(PublicDictionaryUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(PublicDictionaryDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
